package com.quick.im.client.interfaces;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.quick.im.common.entity.domian.MessageRecord;

/**
* 一对一消息表(MessageToOne) 服务接口
* @author xhh
* @since 2024-12-12
*/
public interface IMessageRecordService extends IService<MessageRecord> {
    /** 保存一对一消息表 */
    MessageRecord saveMessageToOne (MessageRecord request);

    /** 根据id删除一对一消息表 */
    void deleteMessageToOneById (Integer id);

    /** 修改一对一消息表 */
    MessageRecord updateMessageToOne (MessageRecord request) throws IllegalAccessException, NoSuchMethodException;

    /** 查询一对一消息表列表 */
    Page<MessageRecord> listMessageToOne (MessageRecord request) throws IllegalAccessException, NoSuchMethodException;

    /** 查询一对一消息表详情 */
    MessageRecord getMessageToOneById (Integer id);

}
